<%@ include file="/WEB-INF/jsp/includes/include.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>${entity.name}</title>
        <c:set var="messageboard"><spring:theme code="messageboard"/></c:set>
        <link rel="stylesheet" href="<c:url value="${messageboard}"/>" type="text/css" />
        <c:set var="profile"><spring:theme code="profile"/></c:set>
        <link rel="stylesheet" href="<c:url value="${profile}"/>" type="text/css" />
        <c:set var="userprofile"><spring:theme code="userprofile"/></c:set>
        <link rel="stylesheet" href="<c:url value="${userprofile}"/>" type="text/css" />
	</head>

	<body>

		<!-- BEGIN LEFT COLUMN -->
		<div id="leftcolumn">
	
			<!-- BEGIN USER PHOTO -->
			<div id="profilePhoto">
				<c:url scope="page" value="/getImage.do" var="entityImg">
					<c:param name="imgsrc" value="${entity.imgSrc}"/>
				</c:url>
				<a href="${entityImg}">
					<img src="${entityImg}" width="130" alt="${entity.name}" class="profilePhoto" />								
				</a>
				<div id="profileName">
					${entity.name}
				</div>
			</div>
			<!-- END USER PHOTO -->
	
			<!-- BEGIN LEFT NAV OPTIONS -->
			<div id="leftnavOptions">			
				<!-- show only if this is the profile of the current user -->
				<c:if test="${entity.id == loggedInUser.id}">
					<div id="editProfile" class="leftnavLink">
						<c:url scope="page" value="/user/editprofile.html" var="editProfileURL">
							<c:param name="id" value="${entity.id}"/>
						</c:url>
						<a href="${editProfileURL}" class="leftnavButton">
							&raquo; Edit Profile
						</a>
					</div> <!-- #editProfile -->
				</c:if>
			</div> <!-- #leftnavOptions -->
	
			<!-- END LEFT NAV OPTIONS -->
	
		</div> <!-- #leftcolumn -->
		<!-- END LEFT COLUMN -->
	
	
		<!-- BEGIN CENTRE COLUMN -->
		<div id="centercolumn">

			<!-- BEGIN MESSAGE BOARD -->
			<jsp:include page="/WEB-INF/jsp/tiles/messageBoard.jsp"/>
			<!-- END MESSAGE BOARD -->

		</div>
		<!-- END CENTRE COLUMN -->

		<!-- BEGIN RIGHT COLUMN -->
		<div id="rightcolumn">

			<!-- BEGIN USERS SECTION -->
			<jsp:include page="/WEB-INF/jsp/tiles/user/network.jsp"/>	
			<!-- END USERS SECTION -->

			<!-- BEGIN PROJECTS SECTION -->
			<jsp:include page="/WEB-INF/jsp/tiles/project/network.jsp"/>
			<!-- END PROJECTS SECTION -->

			<!-- BEGIN ORGANISATIONS SECTION -->
			<jsp:include page="/WEB-INF/jsp/tiles/organisation/network.jsp" />
			<!-- END ORGANISATIONS SECTION -->

		</div> <!-- #rightcolumn -->
		<!-- END RIGHT COLUMN -->
	</body>
</html>
